package com.zoshine.zzg.config.idworker;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * idWorker配置
 *
 * @author 贾俊峰
 * @time 2017/6/20 11:23
 */
@Configuration
@ConfigurationProperties(prefix = "idworker")
public class IdWorkerProperties {
    /** 工作机编号 */
    private Long workerId;
    /** 数据中心编号 */
    private Long dataCenterId;

    public Long getWorkerId() {
        return workerId;
    }

    public void setWorkerId(Long workerId) {
        this.workerId = workerId;
    }

    public Long getDataCenterId() {
        return dataCenterId;
    }

    public void setDataCenterId(Long dataCenterId) {
        this.dataCenterId = dataCenterId;
    }
}
